package org.zjx.service.impl;

import org.zjx.dao.entity.Device;
import org.zjx.dao.mapper.DeviceMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.zjx.service.IDeviceService;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 
 * @since 2025-05-28
 */
@Service
public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> implements IDeviceService {

    @Override
    public Device getDeviceByCard(String card) {
        return lambdaQuery().eq(Device::getCard, card).one();
    }
}
